package com.auction.mapper;

import com.auction.common.dao.MyBaseMapper;
import com.auction.entity.Bidding;
import com.auction.utils.PageBidding;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BiddingMapper extends MyBaseMapper<Bidding> {
    /**
     * 根据价格排序
     * @param pageBidding
     * @return
     */
    List<Bidding> getBiddingOrderByPrice(PageBidding pageBidding);
    /**
     * 根据时间排序
     * @param pageBidding
     * @return
     */
    List<Bidding> getBiddingOrderByTime(PageBidding pageBidding);

    /**
     * 根据id删除竞拍记录
     * @param id
     * @return
     */
    int deleteIsDel(int id);
}
